Imports System.Configuration
Public Class DataProviderConfiguration
    Inherits ConfigurationSection

    ''' <summary>
    ''' The PathString property builds the full provider string based on the Web.config path to the DBFile
    ''' </summary>
    ''' <value>String value that is the fully qualified Provider String</value>
    ''' <returns>String value to use for connections as their ConnectionString property.</returns>
    ''' <remarks>Only use this property for all database connection strings.</remarks>
    <ConfigurationProperty("DBServer", IsRequired:=False)> _
    Public ReadOnly Property DBServer() As String
        Get
            Return CStr(Me("DBServer"))
        End Get
    End Property

    <ConfigurationProperty("DBUser", IsRequired:=False)> _
    Public ReadOnly Property DBUser() As String
        Get
            Return CStr(Me("DBUser"))
        End Get
    End Property

    <ConfigurationProperty("DBPassword", IsRequired:=False)> _
    Public ReadOnly Property DBPassword() As String
        Get
            Return CStr(Me("DBPassword"))
        End Get
    End Property

    <ConfigurationProperty("DBDatabaseName", IsRequired:=True)> _
    Public ReadOnly Property DBDatabaseName() As String
        Get
            Return CStr(Me("DBDatabaseName"))
        End Get
    End Property

    <ConfigurationProperty("DBType", IsRequired:=True)> _
    Public ReadOnly Property DBType() As String
        Get
            Return CStr(Me("DBType"))
        End Get
    End Property

    <ConfigurationProperty("ConnectString", IsRequired:=False)> _
Public ReadOnly Property ConnectString() As String
        Get
            Return CStr(Me("ConnectString"))
        End Get
    End Property
End Class